package components.validators
{
	import mx.validators.SocialSecurityValidator;
	
	import framework.LangMgr;
	
	import interfaces.IValidation;
	
	public class BaseSocialSecurityValidator extends SocialSecurityValidator
	{
		public function BaseSocialSecurityValidator()
		{
			super();
			invalidCharError = LangMgr.getResourceByLocaleKey("validate.invalidCharError");
			wrongFormatError = LangMgr.getResourceByLocaleKey("validate.wrongFormatError");
			zeroStartError = LangMgr.getResourceByLocaleKey("validate.zeroStartError");
		}
		
		override public function initialized(document:Object, id:String):void
		{
			super.initialized(document, id);
			var validation:IValidation = document as IValidation;
			if(validation)
				validation.pushValidator(this);
		}
	}
}